package com.huaxiafinance.management.dto.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

public class QueryMessageModelDto {
	private Integer id;

	private String modelName;

	private Integer page;

	@Max(value = 50, message = "最大行数为50")
	@Min(value = 2, message = "最小行数为5")
	private int rows;

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	@Override
	public String toString() {
		return "QueryMessageModelDto[id=" + id + ",modelName=" + modelName + ",page=" + page + ",rows=" + rows + "]";
	}
}
